package com.wtzz.police.base.service;

import com.wtzz.police.base.bean.dto.DepartmentDto;
import com.wtzz.police.base.bean.dto.DepartmentInfoDto;
import com.wtzz.police.base.entity.Department;
import com.wtzz.police.base.service.base.BaseCurdService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 类说明
 */
@Transactional
public interface DepartmentService extends BaseCurdService<Department, String> {

    Page<DepartmentInfoDto> listNotDeleted(Pageable pageable);

    List<DepartmentInfoDto> listAllNotDeleted();

    DepartmentInfoDto findByIdNotDeleted(String id);

}
